Skip to content

fix(pydantic-ai): require Python 3.11 or later to match pydantic-ai - #331

Open
zimeg wants to merge 2 commits into
mainfrom
pydantic-python-floor
Open

zimeg wants to merge 2 commits into
mainfrom
pydantic-python-floor

Conversation

@zimeg

@zimeg zimeg commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Summary

This pull request raises requires-python in pydantic-ai/pyproject.toml from >=3.10 to >=3.11, which is what the pinned pydantic-ai release requires.

On Python 3.10 the install already fails today, with No matching distribution found for pydantic-ai==<version>. With this change pip says why instead: requires a different Python: 3.10 not in '>=3.11'.

The pydantic-ai README also notes the floor above the virtual environment step, so a developer on an older Python learns it before installing.

Testing

  • pip install --dry-run ./pydantic-ai on Python 3.10 now fails with the Python version error.
  • pip install --dry-run ./pydantic-ai on Python 3.11 resolves.

🤖 Generated with Claude Code

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg
zimeg requested a review from a team as a code owner December 3, 2026 21:55
@zimeg zimeg added the bug Something isn't working label Dec 3, 2026
@zimeg zimeg self-assigned this Dec 3, 2026

@mwbrooks mwbrooks left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Thanks @zimeg, matching the floor to pydantic-ai's own means pip now explains the failure on 3.10 instead of hiding it.

Comment thread pydantic-ai/pyproject.toml Resolved
Co-authored-by: Michael Brooks <21328+mwbrooks@users.noreply.github.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants